/*******************************************************************************
 * Copyright (c) 2005, 2007 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package us.gaaoc.framework.dao;

 
import java.util.List;

import us.gaaoc.framework.model.CaseRecord;
import us.gaaoc.framework.model.CaseRecordStatus;

public interface CaseRecordStatusDAO extends GenericDAO<CaseRecordStatus, Integer>{
	public abstract CaseRecordStatus findCaseRecordStatusByCode(int Code);
	
	/**
	 * Get a list of strings of descriptions of the case record statuses
	 * One use of this list is in the creation of UISelectItem uiItems to populate a list box.
	 * A user can then select a description for possible modification of the status of a case
	 * @return a list of descriptions
	 */
	public abstract List<String> getCaseRecordStatusDescriptionList();
	
	/**
	 * Given a description of the case record status get the code
	 * @param caseRecordStatusDescription
	 * @return caseRecordStatusCode
	 */
	public abstract int findCaseRecordStatusCode(String caseRecordStatusDescription);
		
	 
}
